package main
{
	public class DataMng
	{
		private static var _instance:DataMng;
		
		public function DataMng()
		{
			if( _instance )
			{
				throw new Error( "DataMng it is a sigleton" );
			}	
		}
		
		public static function instance():DataMng
		{
			if( _instance == null ) _instance = new DataMng();
			
			return _instance;
		}
		
		public function loadMapData( mapId:int, callBack:Function ):void
		{
			LoaderMng.instance().loadData( "../asset/battle/map/data/map_" + mapId + ".tmap", "战斗地图",  null, callBack, null );
		}
		
	}
}